package itheima.com.Test;

import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectOutputStream;

public class Test3 {
    public static void main(String[] args) throws IOException {
        Student s1 = new Student("孤夜行",99);
        ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream("E:\\d.txt"));
        oos.writeObject(s1);
        oos.close();

    }
}
